/*
** 3673.c
** 
** Made by (seakage2h)
** Login   <seakage2h@seakage2h-ubuntu>
** 
** Started on  Fri Oct  3 16:20:53 2008 seakage2h
** Last update Sun May 12 01:17:25 2002 Speed Blue
*/

/* #include "3673.h" */
#include <stdio.h>

int main()
{
     char A[11], B[11];
     char lA, lB;
     int sum, i, j;

     scanf("%s %s", A, B);
     for(lA = 0; A[lA] != '\0'; lA++)
	  A[lA] -= '0';
     for(lB = 0; B[lB] != '\0'; lB++)
	  B[lB] -= '0';

     sum = 0;
     for(i = 0; i < lA; i++)
	  for (j = 0; j < lB; j++)
	       sum += A[i] * B[j];

     printf("%d\n", sum);

     return 0;
}

